#!/bin/sh

i=`ps -ef|grep 'monitor.sh'|grep -v grep|wc -l`
if [ $i -eq 0 ]; then
    /monitor.sh @env &
fi

killall php
clear && /usr/bin/php /app/index.php @env
tail -f /dev/null